from PyQt6.QtGui import QMouseEvent
from PyQt6.QtWidgets import QLabel
from PyQt6.QtCore import pyqtSignal

class ClickableQLabel(QLabel):
    
    def mousePressEvent(self, ev: QMouseEvent) -> None:
        #if ev.button() == Qt.MouseButton.LeftButton:
        self.clicked.emit()

    clicked = pyqtSignal()